var winston = require('winston');

var logger = new (winston.Logger)({
    transports: [
      new (winston.transports.Console)({ json: false, timestamp: false }),
      new winston.transports.File({ filename: __dirname + '/game.log', json: false })
    ],
    exceptionHandlers: [
      new winston.transports.File({ filename: __dirname + '/exceptions.log', json: false })
    ],
    exitOnError: false
});

module.exports = logger;
logger.info('StartServer').transports.file.opening = false;